package com.htd.base.common.config.bean;

import lombok.Setter;

@Setter
public class CacheConfig {

    private RedisConfig redis;

    /**
     * 缓存类型: no, redis, caffeine, two-level
     */
    private String type;

    public String type() {
        return type == null || type.isEmpty() ? "no" : type;
    }
}
